package com.yuyou.weixin.service.impl;

import com.yuyou.weixin.entity.FnWxSrsUser;
import com.yuyou.weixin.mapper.FnWxSrsUserMapper;
import com.yuyou.weixin.service.IFnWxSrsUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//@Service
public class FnWxSrsUserServiceImpl implements IFnWxSrsUserService {

    @Autowired
    private FnWxSrsUserMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FnWxSrsUser record) {
        return mapper.insert(record);
    }

    @Override
    public FnWxSrsUser selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FnWxSrsUser record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public FnWxSrsUser selectByOpenId(String openId, String projectCode) {
        return mapper.selectByOpenId(openId , projectCode);
    }

    @Override
    public String getMaxExclusiveCode(String projectCode) {
        return mapper.getMaxExclusiveCode(projectCode);
    }
}